﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ProductTasteManager.aspx.cs"
    Inherits="Admin_ProductTasteManager" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>产品口味管理</title>
    <link href="AdminCSS/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
        口味名：<asp:TextBox ID="txtTasteName" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtTasteName"
            Display="Dynamic" ErrorMessage="不可为空"></asp:RequiredFieldValidator>
        起点名：<asp:TextBox ID="txtStartKey" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtStartKey"
            Display="Dynamic" ErrorMessage="不可为空"></asp:RequiredFieldValidator>
        终点名：<asp:TextBox ID="txtEndKey" runat="server"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtEndKey"
            Display="Dynamic" ErrorMessage="不可为空"></asp:RequiredFieldValidator>
        &nbsp;<asp:Button ID="btnAdd" runat="server" Text="添加" Width="70px" OnClick="btnAdd_Click" />
        <table border="0" cellpadding="0" cellspacing="1" width="100%" style="background: Black;">
            <tr style="height: 27px">
                <td style="background: #DFDEDC; width: 4%" align="center">
                    <strong>序号</strong>
                </td>
                <td style="background: #DFDEDC; width: 4%" align="center">
                    <strong>口味名称</strong>
                </td>
                <td style="background: #DFDEDC; width: 4%" align="center">
                    <strong>起始名</strong>
                </td>
                <td style="background: #DFDEDC; width: 4%" align="center">
                    <strong>终点名</strong>
                </td>
                <td style="background: #DFDEDC; width: 4%" align="center">
                    <strong>终点名</strong>
                </td>
            </tr>
            <asp:Repeater runat="server" ID="rptTasteList" OnItemCommand="rptTasteList_ItemCommand">
                <ItemTemplate>
                    <tr id="row" runat="server" style="background: White; height: 27px;">
                        <td align="center">
                            <%#Eval("Id") %>
                        </td>
                        <td align="center">
                            <%#Eval("TasteName")%>
                        </td>
                        <td align="center">
                            <%#Eval("StartKey")%>
                        </td>
                        <td align="center">
                            <%#Eval("EndKey")%>
                        </td>
                        <td>
                            <asp:Button runat="server" CausesValidation="false" ID="btnDel" Text="删除" CommandName="Del"
                                CommandArgument='<%#Eval("Id") %>' />
                        </td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
        </table>
    </div>
    </form>
</body>
</html>
